package com.dsg.dao.account;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsg.entity.account.DsgAccount;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 油公司總帳 Mapper 接口
 * </p>
 *
 * @author system
 * @since 2020-07-12
 */

@Repository
public interface DsgAccountMapper extends BaseMapper<DsgAccount> {

    /**
     * 查询列表
     *
     * @param page
     * @param dsgAccount
     * @return
     */
    List<DsgAccount> selectByList(Page<DsgAccount> page, @Param(value = "en") DsgAccount dsgAccount);

    /**
     * 查詢列表明細（分頁）
     *
     * @param page
     * @param dsgAccount
     * @return
     */
    List<DsgAccount> selectByListDetailed(Page<DsgAccount> page, @Param(value = "en") DsgAccount dsgAccount);

}
